<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="t" %>

<t:body title="Лекция">
	<h1>Lection edit</h1>
	
	<div class="form_block">
		<form:form modelAttribute="lection"  enctype="multipart/form-data">
			<t:input name="Имя" path="name">
				<form:input path="name" size="30" maxlength="80"/>
			</t:input>
			<div class="presentation_block form_row">
					<div class="left_side">Презентация</div><div class="presentation_input_files input_files"><input type="file" name="presentation[0]" class="file_input new_input" border="0" onchange="add_file_input('presentation', '.presentation_input_files');"></div>
			</div>
			<div class="form_row">
				<div class="left_side"> </div>
				<div class="right_side"><span class="add_presentation link">Добавить</span></div>
			</div>
			<div class="question_block form_row">
					<div class="left_side">Вопросы</div><div class="lection_input_file right_side"><input type="file" name="question[]" class="file_input" border="0"></div>
			</div>
			<div class="form_row">
				<div class="left_side"> </div>
				<div class="right_side"><span class="add_question link">Добавить</span></div>
			</div>
			<div class="other_block form_row"><div class="left_side">Другое</div></div>
			<div class="form_row">
				<div class="left_side"></div>
				<div class="right_side"><span class="add_other link">Добавить</span></div>
			</div>
			<span class="link" onclick="document.forms[0].submit();" style="paddind: 5px 15px;">Сохранить</span>
			<span class="link" onclick="history.back()">Назад</span>
		</form:form>
	</div>
</t:body>

